package com.ruoyi.project.system.domain;

import io.swagger.annotations.ApiModelProperty;
import io.swagger.models.auth.In;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.web.domain.BaseEntity;

import java.util.List;

/**
 * 商品对象 sys_good
 *
 * @author theme
 * @date 2021-01-17
 */
public class SysGood extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 订单主键
     */
    private Long goodId;

    /**
     * 商品名称
     */
    @ApiModelProperty(name = "商品名称")
    private String name;


    /**
     * 商品名称
     */
    @ApiModelProperty(name = "商品编码")
    private String code;

    /**
     * 商品小图标
     */
    @ApiModelProperty(name = "商品小图标")
    private String pics;

    /**
     * 商品小图标
     */
    @ApiModelProperty(name = "商品小图标")
    private String image;

    /**
     * 商品详情
     */
    @ApiModelProperty(name = "商品详情")
    private String detail;

    /**
     * 概率
     */
    @ApiModelProperty(name = "概率")
    private Long chance;

    /**
     * 成本价格
     */
    @ApiModelProperty(name = "成本价格")
    private Double price;

    /**
     * 数据字典(品牌类型)
     */
    @ApiModelProperty(name = "数据字典(品牌类型)")
    private Long brand;

    /**
     * 数据字典(商品类型)
     */
    @ApiModelProperty(name = "数据字典(商品类型)")
    private String type;

    /**
     * 数据字典(上下架状态)
     */
    @ApiModelProperty(name = "数据字典(上下架状态)")
    private Long status;

    /**
     * 库存
     */
    @ApiModelProperty(name = "库存")
    private Integer stock;

    /**
     * 销售价格
     */
    @ApiModelProperty(name = "销售价格")
    private Double money;

    private List<SysImg> fileList;

    private List<SysImg> files;

    private int times;

    public void setGoodId(Long goodId) {
        this.goodId = goodId;
    }

    public Long getGoodId() {
        return goodId;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setPics(String pics) {
        this.pics = pics;
    }

    public String getPics() {
        return pics;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public String getImage() {
        return image;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }

    public String getDetail() {
        return detail;
    }

    public void setChance(Long chance) {
        this.chance = chance;
    }

    public Long getChance() {
        return chance;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public void setMoney(Double money) {
        this.money = money;
    }

    public void setBrand(Long brand) {
        this.brand = brand;
    }

    public Long getBrand() {
        return brand;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public void setStatus(Long status) {
        this.status = status;
    }

    public Long getStatus() {
        return status;
    }

    public Integer getStock() {
        return stock;
    }

    public void setStock(Integer stock) {
        this.stock = stock;
    }

    public Double getMoney() {
        return money;
    }

    public List<SysImg> getFileList() {
        return fileList;
    }

    public void setFileList(List<SysImg> fileList) {
        this.fileList = fileList;
    }

    public List<SysImg> getFiles() {
        return files;
    }

    public void setFiles(List<SysImg> files) {
        this.files = files;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }


    public int getTimes() {
        return times;
    }

    public void setTimes(int times) {
        this.times = times;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("goodId", getGoodId())
                .append("name", getName())
                .append("pics", getPics())
                .append("image", getImage())
                .append("detail", getDetail())
                .append("chance", getChance())
                .append("price", getPrice())
                .append("brand", getBrand())
                .append("type", getType())
                .append("status", getStatus())
                .append("stock", getStock())
                .append("money", getMoney())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
